<template>
  <div>
    <Modal v-model="viewPop" width="50" class-name="vertical-center-modal" :mask-closable="false">
      <!-- 页头 -->
      <div slot="header" class="header-title">{{ viewItem.title }}</div>
      <!-- 内容 -->
      <div class="content-wrap">
        <img v-if="viewImg" :src="viewImg" class="picture-sty" alt="">
      </div>
      <!-- 底部 -->
      <div slot="footer" class="footer-wrap">
        <div class="tips-text">{{ viewItem.lineText }}</div>
      </div>
    </Modal>
  </div>
</template>
<script>

export default {
  props: ['viewItem', 'viewImg'],
  data() {
    return {
      viewPop: false
    }
  },
  methods: {
  }
}
</script>

<style lang="less" scoped>
:deep(.ivu-modal-header) {
  border: none;
  padding: 48px 44px;
}

:deep(.ivu-modal-body) {
  padding: 0 44px;
}

:deep(.ivu-modal-footer) {
  border: none;
  padding: 25px 44px;
  text-align: left;
}

:deep(.ivu-modal-close) {
  position: absolute;
  top: 42px;
  right: 43px;
}

:deep(.ivu-modal-close .ivu-icon-ios-close) {
  color: #333333;
  font-size: 32px;
}

.vertical-center-modal {
  display: flex;
  align-items: center;
  justify-content: center;

  .header-title {
    font-family: Open Sans, Open Sans;
    font-weight: 600;
    font-size: 20px;
    color: #333333;
    line-height: 23px;
  }

  .content-wrap {

    .picture-sty {
      width: 400px;
      height: 400px;
      object-fit: cover;
      display: block;
      margin: 0 auto;
    }
  }

  .footer-wrap {
    display: flex;
    justify-content: start;

    .tips-text {
      font-family: Open Sans, Open Sans;
      font-weight: 400;
      font-size: 18px;
      color: #AEB0B9;
      line-height: 36px;
    }
  }
}
</style>
